package com.whosly.foundationdb.study.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 *
 */
@RestController
public class DemoController {


	/**
	 * SpringMvc方式
	 */
	@RequestMapping(value = "/demo", method = RequestMethod.GET)
	public Mono<String> demo(ServerWebExchange exchange) {

		return Mono.just("SpringMvc方式 ok");
	}


	/**
	 * 函数式编程见 CHandler
	 */
}
